package com.example.proxy.staticProxy;

/**
 * @Description：中介
 */
public class HouseProxy implements  HouseAgencyCompany{

    private HouseOwner houseOwner;

    public HouseProxy() {
        this.houseOwner = new HouseOwner();
    }

    @Override
    public void rentingHouse() {
        System.out.println("中介：我带你去看房子");
        System.out.println("中介：这个房子价格很便宜");
        houseOwner.rentingHouse();
        System.out.println("中介：欢迎下次光临");

    }
}

